FROM alpine:edge
RUN apk update
RUN apk add git
RUN mkdir /app /caddy
ADD caddy /caddy/caddy
ADD Caddyfile /caddy/Caddyfile
ADD run.sh /run.sh
RUN chmod +x /run.sh
EXPOSE 80
WORKDIR "/caddy"
CMD ["/run.sh"]
